<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .wrap{
            width: 400px;
            height: 400px;
            background-color: #acf;
            text-align: center;
            line-height: 400px;
        }
        /* .wrap:after{
            content: "a";
            display: inline-block;
            height: 100%;
            width: 1px;
            background-color: #ccc;
            vertical-align: middle;
        } */
        img{
            width: 200px;
            height: 200px;  
            /* vertical-align: middle; */
        }
    </style>
</head>
<body>
    <div class="wrap">
        x
        <img src="./imgverticaltest.png" alt="1">
    </div>
</body>
</html>